#!/usr/bin/python
# Filename:builtin-isinstance-ex1.py

class A:
		pass

class B:
		pass

class C(A):
		pass

class D(A,B):
		pass

def dump(object):
		print object,"=>",
		if isinstance(object,A):
				print "A",
		if isinstance(object,B):
				print "B",
		if isinstance(object,C):
				print "C",
		if isinstance(object,D):
				print "D",
		print

a = A()
b = B()
c = C()
d = D()

dump(a)
dump(b)
dump(c)
dump(d)
dump(0)
dump("string")

a = "master"

print "a =",a

